#ifndef CONFIG_H
#define CONFIG_H

#include <QObject>
#include <QSettings>

class Config : public QObject
{
    Q_OBJECT
public:
    explicit Config(QString fileName, QObject *parent = nullptr);
    ~Config();

public:
    void writeConfig(const QString &group, const QString &key, const QVariant &value);
    QVariant readConfig(const QString &group, const QString &key);

private:
    QSettings *settings;
    QString fileName;

signals:

public slots:
};

#endif // CONFIG_H
